/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package in.jquickfinder.extensionviewer;

import in.jquickfinder.extensiondomain.FileExtension;
import java.beans.IntrospectionException;
import org.openide.nodes.BeanNode;
import org.openide.nodes.Children;
import org.openide.util.lookup.Lookups;

/**
 *
 * @author Administrator
 */
class FileExtensionNode extends BeanNode {

    public FileExtensionNode(FileExtension extension) throws IntrospectionException {
        super(extension, Children.LEAF, Lookups.singleton(extension));
        setDisplayName(extension.getFileExtension());
        setShortDescription(extension.getFileType());
    }
}
